import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

import HomePage from "../views/HomePage.vue"
import MyClassify from "../views/MyClassify.vue"
import MyRegister from "../views/MyRegister.vue"
import TianMao from "../views/TianMao.vue"


const router=new VueRouter({
    
    routes:[
        {
            path: "/homepage",
            name: "/homepage",
            component: HomePage
        },
        {
            path:"/myclassify",
            name:"/myclassify",
            component:MyClassify
        },
        {
            path:"/myregister",
            name:"/myregister",
            component:MyRegister
        },
        {
            path:"/tianmao",
            name:"/tianmao",
            component:TianMao
        },
        {
            path:"/",
            redirect:"/homepage"
        }
    ]
})
export default router;